package com.egg.basic.enums.pay;

import com.egg.common.swagger.annotation.SwaggerDisplayAnnotation;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 交易状态
 */
@Getter
@SwaggerDisplayAnnotation
@AllArgsConstructor
public enum TradeStateEnum {


    FAIL("失败", "fail"),
    REFUND("退款", "refund"),
    WAIT("等待", "wait"),
    SUCCESS("成功", "success"),
    ;

    private String message;
    private String code;


    @Override
    public String toString() {
        return message + ":" + code;
    }
}